package ai.plantdata.Behavior.mode.StatePattern.interefaces.impl;

import ai.plantdata.Behavior.mode.StatePattern.classes.Context;
import ai.plantdata.Behavior.mode.StatePattern.interefaces.State;

/**
 * @Author: WangHui
 * @Date: 2020/12/23 16:18
 * @Description:
 */
public class StartState implements State {
    @Override
    public void doAction(Context context) {
        System.out.println("Player is in start state");
        context.setState(this);
    }

    @Override
    public String toString(){
        return "Start State";
    }
}
